<?php

class Core_Controller_Admincp_Theme_Index extends Nuo_Controller_Admincp
{
	function execute($request)
	{
		Nuo::setVar('breadcrum', array(
			'links' => array(
				'admincp' => 'AdminCP',
				'admincp/appearance' => 'Appearance'
			),
			'title' => 'Browse Theme'
		));

		$table = Nuo::getTable('core/theme');

		$select = $table -> select() -> where('is_admincp=0') -> order('sort_order');

		$items = $table -> fetchAll($select);

		return  $this -> render(array('items' => $items));
	}

}
